package com.kevin.learn.状态模式.审批业务;

/**
 * 状态上下文
 */
public class Context {
    private State state;

    public Context() {
    }

    public State getState() {
        return state;
    }

    public void setState(State state) {
        this.state = state;
        this.state.setContext(this);
    }

    public void request() {
        this.state.handle();
    }
}